<template>
  <div class="home">
  <el-container class="container">
  <el-header>
    <div class="header">
        <img src="../assets/logo2.jpg" alt="" class="header_logo">
        <div class="header_div01">
            <el-button type="primary" plain>消息</el-button>
            <el-button type="primary" plain>设置</el-button>
            <el-button type="primary" plain>安全退出▼</el-button>

        </div>
    </div>
  </el-header>
  <el-container>
    <el-aside width="200px">
    <el-menu default-active="1-4-1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :collapse="isCollapse">
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span slot="title">导航一</span>
        </template>
      </el-submenu>
      <el-menu-item index="2">
        <i class="el-icon-menu"></i>
        <span slot="title">导航二</span>
      </el-menu-item>
      <el-menu-item index="4">
        <i class="el-icon-setting"></i>
        <span slot="title">导航四</span>
      </el-menu-item>
      </el-menu>
    </el-aside>

    <el-main>
          <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%;" @selection-change="handleSelectionChange">
          <el-table-column type="selection" width="55" style="background:#909399">
          </el-table-column>
          <el-table-column prop="name" label="姓名" width="120">
          </el-table-column>
          <el-table-column prop="student" label="学号" show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="phone" label="手机号" show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="sex" label="性别" width="120">
          </el-table-column>
          <el-table-column prop="age" label="年龄" show-overflow-tooltip>
          </el-table-column>
          <el-table-column prop="studentClass" label="专业" show-overflow-tooltip>
          </el-table-column>
           <el-table-column label="操作" width="270">
              <el-button type="primary">编辑</el-button>
              <el-button type="danger">删除</el-button>
          </el-table-column>

          </el-table>
    </el-main>

  </el-container>
</el-container>
  </div>
</template>
<script>
export default {
    data() {
      return {
        tableData: [{
          student: '201905738201',
          name: '王小虎',
          phone:17633821391,
          studentClass: '数学',
          sex:"男",
          age:20,
        },{
          student: '2009054318221',
          name: '王二狗',
          phone:17633821391,
          studentClass: '英语',
          sex:"男",
          age:18,
        },{
          student: '201923438201',
          name: '哪吒',
          phone:17633821391,
          studentClass: '武术',
          sex:"男",
          age:15,
        } ,{
          student: '201905731234',
          name: '姜子牙',
          phone:15631821391,
          studentClass: '法术',
          sex:"男",
          age:200,
        },{
          student: '201907898201',
          name: '刘索隆',
          phone:17633821391,
          studentClass: '三刀',
          sex:"男",
          age:20,
        },{
          student: '201905738201',
          name: '王路飞',
          phone:15673821391,
          studentClass: '橡胶',
          sex:"男",
          age:18,
        },{
          student: '201905738098',
          name: '刘唐',
          phone:17633827841,
          studentClass: '防御',
          sex:"男",
          age:50,
        }],
        multipleSelection: []
      }
    },
     methods: {
      
    }
}
</script>
<style lang="scss" scoped>
.home{
  height: 100%;
  .header{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
     .header_logo{
        width: 200px;
        height:50px;
      }
    .header_div01{
    }
  }
 
  .el-header{
    background-color: #0097da;
    color: #333;
    padding: 50px 100px;
  }
  .container{
    height: 100%;
  }
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
    height: 100%;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
    text-align: center;
    height: 100%;
    padding: 0;
    .el-table__header{
      background-color: #909399;
    }
  }
  
  body > .el-container {
    margin-bottom: 40px;
    height: 100%;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
}
  
</style>